/*
 * ImageController.h
 *
 *  Created on: Nov 29, 2009
 *      Author: tptfc
 */

#ifndef IMAGECONTROLLER_H_
#define IMAGECONTROLLER_H_

#include "../api/IImageController.h"

class ImageController: public IImageController {
private:
	static IImageController *instance;
protected:
	ImageController();
public:
	virtual ~ImageController();

	/*
	 *	@patter	singleton
	 */
	static IImageController *getInstance();

	/*
	 * @Override see ../api/IImageController.h
	 *
	 * @pattern factory method
	 */
	virtual ImageEntity *getImage(string imagePath);

	/*
	 * @Override see ../api/IImageController.h
	 *
	 */
	virtual void saveImage(string originalPath, string imagePath, ImageEntity *imageEntity);
};

#endif /* IMAGECONTROLLER_H_ */
